package dto

import (
	"github.com/starmotioncf/soutchatinternal/constant"
	"github.com/starmotioncf/soutchatpkg/sms"
)

type SmsSendCaptchaReq struct {
	MobilePhone
	Stype       constant.SMSCaptchaType `json:"stype" validate:"required"`        //短信验证码类型
	SMSProvider sms.SMSProvider         `json:"smsProvider" validate:"omitempty"` //为0，则使用国家指定短信渠道，指定4为whatsapp
}

type SmsSendCaptchaRes struct {
	CodeId string `json:"codeId"`
}

type SmsVerifyCaptchaReq struct {
	Area        int    `json:"area" validate:"required,gt=0"`           //区域
	PhoneNumber string `json:"phoneNumber" validate:"required,numeric"` //手机号，纯数字
	Code        string `json:"code" validate:"required"`                //验证码
	CodeId      string `json:"code_id" validate:"required"`             // 验证码id
}
